package com.cmnit.analysis.controller

import java.util.Date

import com.cmnit.analysis.service.NoTransWithPicService
import com.cmnit.analysis.util.ServiceUtil
import org.apache.log4j.Logger

class NoTransWithPicController {
  private val logger: Logger = Logger.getLogger(this.getClass)
  private val service = new NoTransWithPicService

  def controller(acctTime: String): Unit = {
    if (acctTime.length == 8)
      service.service(acctTime)
    else
      service.service(ServiceUtil.getAcctDateOfTwoDay(new Date))
  }
}
